\hypertarget{xregister_8h_source}{}\doxysection{xregister.\+h}
\mbox{\hyperlink{xregister_8h}{浏览该文件的文档.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef XREGISTER\_H}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define XREGISTER\_H}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{preprocessor}{\#include <QObject>}}
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{xnamespace_8h}{xnamespace.h}}"{}}}
\DoxyCodeLine{6 }
\DoxyCodeLine{7 QT\_BEGIN\_NAMESPACE}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_register_private}{XRegisterPrivate}};}
\DoxyCodeLine{10 \textcolor{keyword}{class }\mbox{\hyperlink{class_x_register}{XRegister}} : \textcolor{keyword}{public} QObject}
\DoxyCodeLine{11 \{}
\DoxyCodeLine{12     Q\_OBJECT}
\DoxyCodeLine{13 }
\DoxyCodeLine{14     Q\_PROPERTY(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}} \mbox{\hyperlink{class_x_register_ad74fda0521dc688dd3ab283cd2173295}{deviceType}} READ \mbox{\hyperlink{class_x_register_a52bd83ac568b4d09201a13dc169b42f8}{getDeviceType}} WRITE \mbox{\hyperlink{class_x_register_a6e8db03308411828236c6bca1cccd098}{setDeviceType}} NOTIFY \mbox{\hyperlink{class_x_register_a02b80468b7a0bbcb69d64bbaa405da95}{deviceTypeChanged}})}
\DoxyCodeLine{15     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_register_a49892d7addec569fad67225c78e81b9d}{deviceNumber}} READ \mbox{\hyperlink{class_x_register_a74cbe8f6c18c3353e7831ec1f8b49be4}{getDeviceNumber}} WRITE \mbox{\hyperlink{class_x_register_a1160d3951ed818b95ca6acc08d592384}{setDeviceNumber}} NOTIFY \mbox{\hyperlink{class_x_register_a23ed2d9108705aa1315122704ebe7078}{deviceNumberChanged}})}
\DoxyCodeLine{16     Q\_PROPERTY(\mbox{\hyperlink{class_x_type_acb1687c741513497f4a5234bad064c98}{XType::RegistersObjectType}} \mbox{\hyperlink{class_x_register_a28b3b23ad88561ef64e52c41f6ce6265}{objectType}} READ \mbox{\hyperlink{class_x_register_ab002b558ea193bbc48152ecac2e81b8c}{getObjectType}} WRITE \mbox{\hyperlink{class_x_register_a4d1fe65a155ff3c51ad770cca4d07982}{setObjectType}} NOTIFY \mbox{\hyperlink{class_x_register_ac01a0ff7bf825fbe5dc5e73bab5bb944}{objectTypeChanged}})}
\DoxyCodeLine{17     Q\_PROPERTY(\textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_register_afc0af7717b79f6f04adc2b8c8a6f4346}{objectNumber}} READ \mbox{\hyperlink{class_x_register_a206db7259feec032d1bbd08c0e051b2c}{getObjectNumber}} WRITE \mbox{\hyperlink{class_x_register_a549569ac622d9393514a8675b6e2c479}{setObjectNumber}} NOTIFY \mbox{\hyperlink{class_x_register_a264d9aed9cd10a16b067e432adf5f5e6}{objectNumberChanged}})}
\DoxyCodeLine{18     Q\_PROPERTY(\mbox{\hyperlink{class_x_type_a2b9947ecd98ff0d8f47dba2f341bc0c8}{XType::ValueType}} \mbox{\hyperlink{class_x_register_a83134ab93e5ce15fb9c82a36e84a5ff5}{valueType}} READ \mbox{\hyperlink{class_x_register_a1f84f7af8fc8d84b5bfb9e50587f7d71}{getValueType}} WRITE \mbox{\hyperlink{class_x_register_a9853873325eb05decaea8b6e4aa2304c}{setValueType}} NOTIFY \mbox{\hyperlink{class_x_register_a79f9555415615e88b6e955d991cfcd9f}{valueTypeChanged}})}
\DoxyCodeLine{19     Q\_PROPERTY(\textcolor{keywordtype}{double} \mbox{\hyperlink{class_x_register_a854cbdbc331b7493e65a8a01c3021b15}{registerValue}} READ \mbox{\hyperlink{class_x_register_a2c6dc91812f7d7d346cd0f651728f718}{getRegisterValue}} WRITE \mbox{\hyperlink{class_x_register_ad8dec3612f14cce6fe34b23ce2981a7a}{setRegisterValue}} NOTIFY \mbox{\hyperlink{class_x_register_a878db43603c3df2e391fd743b233faa0}{registerValueChanged}})}
\DoxyCodeLine{20 }
\DoxyCodeLine{21 \textcolor{keyword}{public}:}
\DoxyCodeLine{22     \textcolor{keyword}{explicit} \mbox{\hyperlink{class_x_register_a5f48c65e1e6675addad486a656ac11c4}{XRegister}}(QObject *parent = \textcolor{keyword}{nullptr});}
\DoxyCodeLine{23     \mbox{\hyperlink{class_x_register_abb060b1b93f8c5c2e3ebc3f6d5d21b86}{\string~XRegister}}();}
\DoxyCodeLine{24 }
\DoxyCodeLine{25     \textcolor{comment}{/* Property Interface */}}
\DoxyCodeLine{26     \mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}} \mbox{\hyperlink{class_x_register_a52bd83ac568b4d09201a13dc169b42f8}{getDeviceType}}() \textcolor{keyword}{const};}
\DoxyCodeLine{27     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a6e8db03308411828236c6bca1cccd098}{setDeviceType}}(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}});}
\DoxyCodeLine{28 }
\DoxyCodeLine{29     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_register_a74cbe8f6c18c3353e7831ec1f8b49be4}{getDeviceNumber}}() \textcolor{keyword}{const};}
\DoxyCodeLine{30     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a1160d3951ed818b95ca6acc08d592384}{setDeviceNumber}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{31 }
\DoxyCodeLine{32     \mbox{\hyperlink{class_x_type_acb1687c741513497f4a5234bad064c98}{XType::RegistersObjectType}} \mbox{\hyperlink{class_x_register_ab002b558ea193bbc48152ecac2e81b8c}{getObjectType}}() \textcolor{keyword}{const};}
\DoxyCodeLine{33     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a4d1fe65a155ff3c51ad770cca4d07982}{setObjectType}}(\mbox{\hyperlink{class_x_type_acb1687c741513497f4a5234bad064c98}{XType::RegistersObjectType}});}
\DoxyCodeLine{34 }
\DoxyCodeLine{35     \textcolor{keywordtype}{int} \mbox{\hyperlink{class_x_register_a206db7259feec032d1bbd08c0e051b2c}{getObjectNumber}}() \textcolor{keyword}{const};}
\DoxyCodeLine{36     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a549569ac622d9393514a8675b6e2c479}{setObjectNumber}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{37 }
\DoxyCodeLine{38     \mbox{\hyperlink{class_x_type_a2b9947ecd98ff0d8f47dba2f341bc0c8}{XType::ValueType}} \mbox{\hyperlink{class_x_register_a1f84f7af8fc8d84b5bfb9e50587f7d71}{getValueType}}() \textcolor{keyword}{const};}
\DoxyCodeLine{39     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a9853873325eb05decaea8b6e4aa2304c}{setValueType}}(\mbox{\hyperlink{class_x_type_a2b9947ecd98ff0d8f47dba2f341bc0c8}{XType::ValueType}});}
\DoxyCodeLine{40 }
\DoxyCodeLine{41     \textcolor{keywordtype}{double} \mbox{\hyperlink{class_x_register_a2c6dc91812f7d7d346cd0f651728f718}{getRegisterValue}}() \textcolor{keyword}{const};}
\DoxyCodeLine{42     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_ad8dec3612f14cce6fe34b23ce2981a7a}{setRegisterValue}}(\textcolor{keywordtype}{double});}
\DoxyCodeLine{43 }
\DoxyCodeLine{44 signals:}
\DoxyCodeLine{45     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a02b80468b7a0bbcb69d64bbaa405da95}{deviceTypeChanged}}(\mbox{\hyperlink{class_x_type_a0f316d8a43151ef3012cddd6a5d459d4}{XType::DeviceType}});}
\DoxyCodeLine{46     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a23ed2d9108705aa1315122704ebe7078}{deviceNumberChanged}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{47     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_ac01a0ff7bf825fbe5dc5e73bab5bb944}{objectTypeChanged}}(\mbox{\hyperlink{class_x_type_a67aa17a2f9a16def4cd2fd406ba4162b}{XType::CoilObjectType}});}
\DoxyCodeLine{48     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a264d9aed9cd10a16b067e432adf5f5e6}{objectNumberChanged}}(\textcolor{keywordtype}{int});}
\DoxyCodeLine{49     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a79f9555415615e88b6e955d991cfcd9f}{valueTypeChanged}}(\mbox{\hyperlink{class_x_type_a2b9947ecd98ff0d8f47dba2f341bc0c8}{XType::ValueType}});}
\DoxyCodeLine{50     \textcolor{keywordtype}{void} \mbox{\hyperlink{class_x_register_a878db43603c3df2e391fd743b233faa0}{registerValueChanged}}(\textcolor{keywordtype}{double});}
\DoxyCodeLine{51 }
\DoxyCodeLine{52 \textcolor{keyword}{private}:}
\DoxyCodeLine{53     Q\_DISABLE\_COPY(\mbox{\hyperlink{class_x_register}{XRegister}})}
\DoxyCodeLine{54     \mbox{\hyperlink{class_x_register_private}{XRegisterPrivate}} *\mbox{\hyperlink{class_x_register_a6e5f30f1cc100a9fa61a5e60f14bf9d8}{xRegisterP}};}
\DoxyCodeLine{55 \};}
\DoxyCodeLine{56 }
\DoxyCodeLine{57 QT\_END\_NAMESPACE}
\DoxyCodeLine{58 }
\DoxyCodeLine{59 \textcolor{preprocessor}{\#endif }\textcolor{comment}{// XREGISTER\_H}}

\end{DoxyCode}
